home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d504 / polysilicon.lha / PolySiliCon / Install SiliCon / .work_scripts / fixup_mountlist next >
Text File  |  1991-06-27  |  2KB  |  53 lines

  1. mat >NIL: "IP:#?" nocase devs:mountlist
  2. if warn
  3.     echo "MountList should have an entry for IP:"
  4.     echo "I can add a suitable entry now if you permit."
  5.     echo "If you prefer, and know how, you may do the job yourself."
  6.     echo "If the file is edited automatically, the original will"
  7.     echo "be kept as DEVS:MountList.BAK."
  8.     echo "If somehow an error should occur, the original file"
  9.     echo "will NOT be changed."
  10.     jask "-rshall I Edit MountList?" -q
  11.     if warn
  12.         echo "Proceeding to add IP: to MountList"
  13.         if exists DEVS:MountList.BAK
  14.             echo "A previous MountList.BAK already exists!"
  15.             jask "-r -- shall I go on?" "-nNo Way!!" -pOK -q
  16.             if not warn
  17.                 echo "OK -- I'll stop here"
  18.                 skip EXIT_all
  19.             else
  20.                 delete DEVS:MountList.BAK
  21.             endif
  22.         endif
  23.         Merge >RAM:_New_MountList DEVS:MountList 9999 IP_MountList
  24.         if fail
  25.             skip nogood
  26.         endif
  27.         copy RAM:_New_Mountlist to DEVS:
  28.         if fail
  29.             skip nogood
  30.         endif
  31.         delete RAM:_New_MountList
  32.         cd DEVS:
  33.         rename MountList as MountList.BAK
  34.         rename _New_MountList as MountList
  35.         echo "New MountList installed"
  36.         cd _I_Install_:
  37.         skip done
  38.     lab nogood
  39.         echo "MountList editing FAILED!"
  40.         skip EXIT_all
  41.     else
  42.         echo ""
  43.         echo "MountList not being changed..."
  44.         echo "To make the changes yourself, use the template"
  45.         echo "IP_MountList in the 'Install SiliCon' directory"
  46.         skip EXIT_all
  47.     endif
  48. else
  49.     echo "Mountlist appears correct for IP: device"
  50. endif
  51. lab done
  52.  
  53.